<include file="Common:header"/>
  	<title>我的购物车</title>
	<css file="__PUBLIC__/Index/css/cart.css"/>
	<js file="__PUBLIC__/js/jquery-1.8.2.min.js"/>
	<js file="__PUBLIC__/Index/js/cart.js"/>
	<script type="text/javascript">
		var getPricePath = "{:U('Cart/editBuyNum')}";
		var delCartgsPath = "{:U('Cart/delCartGoods')}";
		var goUserEntry = "{:U('UserEntry/login')}";
		var goPage = "{:U('Order/confirmOrder')}";
		<?php
			if(isset($_SESSION['username'])){
				echo "var isLogon=1;";
			}else{
				echo "var isLogon=0;";
			}
		?>
	</script>
	<div class="goodscont">
		<div style="background:#FFFFFF;float:left;">
		<div class="cart_head">
			<a href="/" target="blank">
				<div class="shop_logo" style="cursor:pointer;"></div>
			</a>
			<div class="cart_head_r">
				<a href="javascript:alert('正在施工中...');">个人中心</a>/ 
				<a href="javascript:void(0);">帮助中心</a>/ 
				<a href="/">返回首页</a>
			</div>
		</div>
		<div class="cart_setup">
			<span class="shop_menu_line" style="color: #fff">购物车</span>
			<span>></span>
			<span class="shop_menu_line">确认订单信息</span>
			<span>></span>
			<span class="shop_menu_line">提交订单成功</span>
			<span>></span>
			<span class="shop_menu_line">确认收货</span>
		</div>
		<div class="cartbox">
  			<form action="{:U('Order/confirmOrder')}" method="post">
			<div class="cartbox_title">
				<div class="shop_qx" style="width: 112px;">
					<input id="selectAll" type="checkbox" >全选
				</div>
				<div class="shop_qx" style="width: 482px;">商品名称</div>
				<div class="shop_qx" style="width: 130px;">售价</div>
				<div class="shop_qx" style="width: 130px;">数量</div>
				<div class="shop_qx" style="width: 115px;">小计</div>
				<div class="shop_qx" style="width: 120px;">操作</div>
			</div>
			<div class="gslistbox">
				<foreach name="data" item="val">
					<ul class="buygslist">
						<li class="checkthis">
							<input type="checkbox" checked="checked" class="cgscheck" clid="{$key}"/>
						</li>
						<li class="cgsinfo">
							<a href="{:U('Goodscont/index' ,array('gid'=>$val[gid]))}" title="{$val.gname}"><img width="112px" height="112px" src="{$val.gimg}" alt="{$val.gname}" ></a>
							<div class="gsintro">
								<p><a href="">{$val.gname}</a></p>
								<span>颜色：{$val.color}</span>&nbsp;&nbsp;
								<span>尺码：{$val.size}</span>
							</div>
						</li>
						<li class="sprice">￥{$val.sprice}</li>
						<li class="addred">
							<input name="buynumber" value="{$val.number}" style="width:30px;text-align:center;">
							<input type="hidden"  name="buynumberh[]" value="{$val.number}">
						</li>
						<li>
							<p class="totalprice ctotalprice">￥{$val.totalPrice}</p>
						</li>
						<li class="delcartgs">
							<a href="javascript:void(0)" clid="{$key}" class="rmcartgs" title="要删除购买的商品吗?">删除</a>
						</li>
						<input type="hidden" name="gid" value="{$val.gid}">
						<input type="hidden" name="goodsSpecIds" value="{$val.spec}">
					</ul>
				</foreach>
				<div class="nextdo">
					<ul>
						<li style="border:none;">
							<a href="javascript:void(0)" class="delAllgs">批量删除</a>
							<span class="cartTolPrice">购物总金额：<em>0.00</em>元</span>
						</li>
						<li style="border:none;">
							<input type="submit" class="toorder" value=""/>
							<a href="/" class="tobuy"></a>
						</li>
					</ul>
				</div>
			</div>
			</form>
		</div>
		</div>
		<!-- 网站底部声明 -->
		<div class="uentrybottom" style="height:200px;">
			<div class="uentrybottom_c1">
				仿韩都衣舍官网，仅供个人学习实践使用，不用于任何商业用途，不承担任何法律责任！
			</div>
			<div class="uentrybottom_c2">
				
			</div>
		</div>
		<!-- 网站底部声明 -->
	</div>
	</body>
</html>